-
-
Notifications
You must be signed in to change notification settings - Fork 3k
getLineHTMLForExport produces multiple copies of a line #2486
Copy link
Copy link
Closed
Description
If you have ep_headings2 and ep_align installed multiple copies of that line will be exported in the HTML.
To replicate install both plugins, set the attribute on both lines. Hit up the /export/html endpoint.
What happens: You get 2 lines of the same contents
What should happen: You get 1 line with both stylings applied.
Here is some example HTML
<body>
*<span style='font-size:16px'>Welcome to Etherpad!</span>
<h2>Welcome to Etherpad!</h2>
<div style="width:100%;margin:0 auto;list-style-position:inside;text-align:right">*<fs16>Welcome to Etherpad!</fs16></div>
</body>
</html>
https://github.com/ether/etherpad-lite/blob/develop/src/node/utils/ExportHtml.js#L414 is the offending hook.
Reactions are currently unavailable