trilium
trilium copied to clipboard
(Bug report) Import from HTML does not restore indentation
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> </p>
</body>
Once imported back, the HTML doesn't contain the style attribute:
<p>normal line</p>
<p>indented line</p>
<p> </p>