Skip to content
Discussion options

You must be logged in to vote

Is the problem with Element Android the explicit newline, or is it the fact that there's a <p> tag?

Any HTML rendering should collapse white space, so the newline shouldn't show up as an empty line; but if it's not expecting messages to be marked up as paragraphs then it absolutely might have a top margin/padding for those, even if it's the start of the message (which it could differentiate from subsequent paragraphs in CSS easily enough using parent selectors or :nth-child).

Either way, it seems to me that Element Android shouldn't render it like that.

I agree it would be nicer if the explicit newline wasn't in the message.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@scolobb
Comment options

@sergiodj
Comment options

Answer selected by scolobb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants