]> git.lyx.org Git - lyx.git/blobdiff - src/output_xhtml.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / output_xhtml.cpp
index eccc44e65760e7bb5b44f83048929af572230188..fdf8681b56b8964946bbf3da2b89bbb8f2b3d412 100644 (file)
@@ -238,7 +238,6 @@ void XHTMLStream::clearTagDeque()
                StartTag const & tag = pending_tags_.front();
                // tabs?
                os_ << tag.asTag();
-               cr();
                tag_stack_.push_back(tag);
                pending_tags_.pop_front();
        }
@@ -381,7 +380,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 +422,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.
@@ -675,7 +671,6 @@ ParagraphList::const_iterator makeEnvironmentHtml(Buffer const & buf,
                                        closeItemTag(xs, *lastlay);
                                        lastlay = 0;
                                }
-                               bool const labelfirst = style.htmllabelfirst();
                                if (isNormalEnv(style)) {
                                        // in this case, we print the label only for the first 
                                        // paragraph (as in a theorem).
@@ -691,12 +686,13 @@ ParagraphList::const_iterator makeEnvironmentHtml(Buffer const & buf,
                                                xs.cr();
                                        }
                                }       else { // some kind of list
+                                       bool const labelfirst = style.htmllabelfirst();
                                        if (!labelfirst)
                                                openItemTag(xs, style);
                                        if (style.labeltype == LABEL_MANUAL
                                            && style.htmllabeltag() != "NONE") {
                                                openLabelTag(xs, style);
-//                                             sep = par->firstWordLyXHTML(xs, runparams);
+                                               sep = par->firstWordLyXHTML(xs, runparams);
                                                closeLabelTag(xs, style);
                                                xs.cr();
                                        }