1 line code while wanting multiple lines



  • Whenever I transfer a Word.docx to a TEI XML-file, it transfers correctly. But when I open it with Notepad++ to edit the XML-file, I get the entire file onto 1 row. I want to see it in it’s original form. Only got this problem on my notebook, not on the desktop I often work on. But I can’t see the difference between the 2. Help?
    Emiel



  • @Emiel-D

    if you see only one line then it means that no eol (end of line) chars are available.
    You can use xml-tools->pretty print(xml only - with linebreaks) to reformat it but
    this means additional chars, the eol chars, will be added to the document. Not sure
    if this breaks something.

    Cheers
    Claudia



  • Do you have any idea why it would be working on my desktop and not on my notebook? When I transfer the file, exactly the same way as on my notebook, it does have the end of lines. Is this some sort of setting you got to apply?

    I already installed the XML-Tools, and for now it solves the deal. Thanks, Claudia!



  • @Emiel-D

    so you are saying you do the same on desktop pc and notebook and
    if you open the file with npp on desktop you see multiple lines but if
    you open it with npp on notebook you only have one line?
    That would be strange. Do you use the same plugins on both?
    Maybe one of it is corrupting the file - but to be honest,
    I don’t see how. XML Tools has a linarize function, could it be that it is executed
    when loading a xml file?

    And no, there is no npp setting which needs to be applied.

    Cheers
    Claudia


Log in to reply