Sablon.HTMLConverter.Visitor.LastNewlineRemover (sablon v0.4.4)

Copy Markdown View Source

Drops the trailing line break of a paragraph.

Markup such as <p>text<br/></p> would otherwise render an empty line at the end of every paragraph, because the paragraph already ends the line.

Summary

Functions

Removes a trailing Newline from a paragraph, leaving other nodes alone.

Functions

visit(paragraph)

@spec visit(struct()) :: struct()

Removes a trailing Newline from a paragraph, leaving other nodes alone.