Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The export format is incorrect when the table tag contains < p > or < br > #378

Open
zhangboyi opened this issue Mar 13, 2022 · 0 comments

Comments

@zhangboyi
Copy link

  • Version by 2020.1.16
  • Test case
    input
  <table id="3Kgo0" class="ne-table" style="width: 750px">
    <tbody>
      <tr style="height: 33px">
        <td width="375">
          <p id="80f1e4b0577146342230ad0221243e5a" class="ne-p"><span class="ne-text">Verb</span></p>
        </td>
        <td width="375">
          <p id="2c22c1370bf9272fc006defb28cba341" class="ne-p"><span class="ne-text">Description</span></p>
        </td>
      </tr>
      <tr style="height: 33px">
        <td width="375">
          <p id="e36e4d22cf2d38bab5c30e91abd95fce" class="ne-p"><span class="ne-text">GET</span></p>
        </td>
        <td width="375">
          <p id="b378d7e7626b3ee55e3cbe161d093aea" class="ne-p"><span class="ne-text">用于获取数据</span></p>
          <p id="b378d7e7626b3ee55e3cbe161d093aea" class="ne-p"><span class="ne-text">用于获取数据</span></p>
          <br id="b378d7e7626b3ee55e3cbe161d093aea" class="ne-p"><span class="ne-text">用于获取数据</span></br>
        </td>
      </tr>
      <tr style="height: 33px">
        <td width="375">
          <p id="75f0b6927e4ae47cdb8a691245d419a4" class="ne-p"><span class="ne-text">POST</span></p>
        </td>
        <td width="375">
          <p id="08107d838eecc02d07386b1bd53c64a4" class="ne-p"><span class="ne-text">用于创建数据</span></p>
        </td>
      </tr>
      <tr style="height: 33px">
        <td width="375">
          <p id="dee8b9c9b0e9fb062685ec717618cf58" class="ne-p"><span class="ne-text">PUT</span></p>
        </td>
        <td width="375">
          <p id="ddcbe3dde23026300add5dc6ce3981d1" class="ne-p"><span class="ne-text">用于修改部分数据,例如一个文档标题,正文</span></p>
        </td>
      </tr>
      <tr style="height: 33px">
        <td width="375">
          <p id="d37ba823572433c8a29d37fa35492346" class="ne-p"><span class="ne-text">DELETE</span></p>
        </td>
        <td width="375">
          <p id="3d529cdd7ecbd89409d564bcc45f7d48" class="ne-p"><span class="ne-text">用于删除数据</span></p>
        </td>
      </tr>
    </tbody>
  </table>

output

                     
Verb                 
                     
                     |    
                     
Description          
---------------------|----
GET                  
                     
                     |    
                     
用于获取数据               
                     
用于获取数据               
                     
                     
用于获取数据               
POST                 
                     
                     |    
                     
用于创建数据               
PUT                  
                     
                     |    
                     
用于修改部分数据,例如一个文档标题,正文 
DELETE               
                     
                     |    
                     
用于删除数据               

  • Python version 3.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant