Skip to content

getLineHTMLForExport produces multiple copies of a line #2486

@JohnMcLear

Description

@JohnMcLear

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions