trilium icon indicating copy to clipboard operation
trilium copied to clipboard

(Bug report) Import from HTML does not restore indentation

Open spasche opened this issue 2 years ago • 0 comments

Trilium Version

0.55.1

What operating system are you using?

Windows

What is your setup?

Local + server sync

Operating System Version

Windows 11

Description

Hi, I noticed that when exporting and then importing the exported notes, the indentation is lost. To reproduce:

  • Create a new note with indented content (using Tab key)
  • Export to HTML
  • Import the generated ZIP file

Here's an example note with an indented line. In the exported HTML, the indentation is present:

  <body class="ck-content">
     <h1>indentation</h1>

    <p>normal line</p>
    <p style="margin-left:40px;">indented line</p>
    <p>&nbsp;</p>
  </body>

Once imported back, the HTML doesn't contain the style attribute:

<p>normal line</p>
<p>indented line</p>
<p>&nbsp;</p>

spasche avatar Sep 21 '22 21:09 spasche