This project has moved. For the latest updates, please go here.

New line at the beginning

Mar 21, 2016 at 8:26 AM
Hello!

I am using your dll to generate docx files from html. I use the way, when there is a template file. (because if I use the other way, OpenOffice can't open the created file)

When i generate the file there is an empty line at the beginning. What can I do with it?

Thank you!
Csaba
Coordinator
Mar 23, 2016 at 7:44 AM
Hello,

This library may generates empty paragraphs, this is the reason why there is a cleanup method at the end of the conversion.
So, this makes me to think that there is an empty line in your template file.
Can you also post the beginning of your html?
Mar 29, 2016 at 9:22 AM
Hello!

I managed, to remove the blank line, by editing the template, and removing these lines from document.xml:
<w:p w:rsidP="00ED3C6C" w:rsidRDefault="00ED3C6C" w:rsidRPr="00ED3C6C" w:rsidR="00ED3C6C">
        <w:bookmarkStart w:name="_GoBack" w:id="0"/>
        <w:bookmarkEnd w:id="0"/>
</w:p>
But now, OpenOffice won't open the file. I'm using this html:
<table border="1">
  <tbody>
    <tr>
      <td>asd</td>
      <td>asd</td>
    </tr>
    <tr>
      <td>asd</td>
      <td>asd</td>
    </tr>
  </tbody>
</table>
Do you know what can be the problem, with OpenOffice?