diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp
index 3fbc33907a..963bd490ca 100644
--- a/src/output_xhtml.cpp
+++ b/src/output_xhtml.cpp
@@ -381,7 +381,6 @@ XHTMLStream & XHTMLStream::operator<<(EndTag const & etag)
if (etag.tag_ == tag_stack_.back().tag_) {
// output it...
os_ << etag.asEndTag();
- cr();
// ...and forget about it
tag_stack_.pop_back();
return *this;
@@ -424,14 +423,12 @@ XHTMLStream & XHTMLStream::operator<<(EndTag const & etag)
TagStack fontstack;
while (curtag.tag_ != etag.tag_) {
os_ << curtag.asEndTag();
- cr();
fontstack.push_back(curtag);
tag_stack_.pop_back();
curtag = tag_stack_.back();
}
// now close our tag...
os_ << etag.asEndTag();
- cr();
tag_stack_.pop_back();
// ...and restore the other tags.