]> git.lyx.org Git - features.git/commitdiff
Revert "DocBook: use DocBookItemTag within paragraphs."
authorThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 3 Aug 2020 20:57:11 +0000 (22:57 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 3 Aug 2020 20:57:11 +0000 (22:57 +0200)
This reverts commit 49b998f99b2d0fe6194bcb92bede29cbc2b7176d.

autotests/export/docbook/bibliography_precooked_aastex.xml
lib/layouts/aastex.layout
src/output_docbook.cpp

index b6638686aca0bfe924298cc1980ae6cf222cd8d5..37dada807b4de308c172ed30b6f222861f5ff146 100644 (file)
@@ -5,21 +5,21 @@
 <info>
 <title>Collapsed Cores in Globular Clusters,  Gauge-Boson Couplings, and AASTeX Examples</title>
 <author><personname>S. Djorgovski and Ivan R. King</personname></author>
-<author><affiliation><orgname>Astronomy Department, University of California, Berkeley, CA 94720</orgname></affiliation></author>
-<author><affiliation role="alternate"><orgname>Visiting Astronomer Cerro Tololo Inter-American Observatory.CTIO is operated by AURA Inc. under contract to the National Science Foundation.</orgname></affiliation></author>
-<author><affiliation role="alternate"><orgname>Society of Fellows, Harvard University.</orgname></affiliation></author>
-<author><affiliation role="alternate"><orgname>present address: Center for Astrophysics60 Garden Street, Cambridge, MA 02138</orgname></affiliation></author>
+<author><affiliation>Astronomy Department, University of California, Berkeley, CA 94720</affiliation></author>
+<author><affiliation role="alternate">Visiting Astronomer Cerro Tololo Inter-American Observatory.CTIO is operated by AURA Inc. under contract to the National Science Foundation.</affiliation></author>
+<author><affiliation role="alternate">Society of Fellows, Harvard University.</affiliation></author>
+<author><affiliation role="alternate">present address: Center for Astrophysics60 Garden Street, Cambridge, MA 02138</affiliation></author>
 <author><personname>C. D. Biemesderfer</personname></author>
-<author><affiliation><orgname>National Optical Astronomy Observatories, Tucson, AZ 85719</orgname></affiliation></author>
-<author><affiliation role="alternate"><orgname>Visiting Programmer, Space Telescope Science Institute</orgname></affiliation></author>
-<author><affiliation role="alternate"><orgname>Patron, Alonso's Bar and Grill</orgname></affiliation></author>
+<author><affiliation>National Optical Astronomy Observatories, Tucson, AZ 85719</affiliation></author>
+<author><affiliation role="alternate">Visiting Programmer, Space Telescope Science Institute</affiliation></author>
+<author><affiliation role="alternate">Patron, Alonso's Bar and Grill</affiliation></author>
 <author><email>aastex-help@aas.org</email></author>
 <author><personname>R. J. Hanisch</personname></author>
-<author><affiliation><orgname>Space Telescope Science Institute, Baltimore, MD 21218</orgname></affiliation></author>
-<author><affiliation role="alternate"><orgname>Patron, Alonso's Bar and Grill</orgname></affiliation></author>
-<abstract><para>
+<author><affiliation>Space Telescope Science Institute, Baltimore, MD 21218</affiliation></author>
+<author><affiliation role="alternate">Patron, Alonso's Bar and Grill</affiliation></author>
+<abstract>
 <para>This is a preliminary report on surface photometry of the major fraction of known globular clusters, to see which of them show the signs of a collapsed core. We also explore some diversionary mathematics and recreational tables. </para>
-</para></abstract>
+</abstract>
 </info>
 <section>
 <title>Introduction</title>
index 5db7deea0101909f2044ab09d586e968365dc487..275018a83ca96ebd7d05b7e4345a5be238f4b8fe 100644 (file)
@@ -155,9 +155,6 @@ Style Author
          Series        Medium
          Shape         SmallCaps
        EndFont
-       DocBookTag            personname
-       DocBookWrapperTag     author
-       DocBookInInfo         always
 End
 
 
@@ -175,10 +172,6 @@ Style Affiliation
          Family        Roman
          Size          Normal
        EndFont
-       DocBookTag            affiliation
-       DocBookWrapperTag     author
-       DocBookItemTag        orgname
-       DocBookInInfo         always
 End
 
 
@@ -201,11 +194,6 @@ Style Altaffilation
        LabelFont
          Color         green
        EndFont
-       DocBookTag            affiliation
-       DocBookAttr           role="alternate"
-       DocBookItemTag        orgname
-       DocBookWrapperTag     author
-       DocBookInInfo         always
 End
 
 
@@ -225,9 +213,6 @@ Style Email
          Size          Normal
          Shape         Italic
        EndFont
-       DocBookTag            email
-       DocBookWrapperTag     author
-       DocBookInInfo         always
 End
 
 
index 2e7b637969b70f7031df3904c537ae6db04a1096..434148bc86c5582d926589c0e5a62267b3a41821 100644 (file)
@@ -191,25 +191,20 @@ namespace {
 
 void openParTag(XMLStream & xs, Layout const & lay)
 {
-       if (lay.docbookwrappertag() != "NONE")
+       if (lay.docbookwrappertag() != "NONE") {
                xs << xml::StartTag(lay.docbookwrappertag(), lay.docbookwrapperattr());
+       }
 
        string tag = lay.docbooktag();
        if (tag == "Plain Layout")
                tag = "para";
 
        xs << xml::ParTag(tag, lay.docbookattr());
-
-       if (lay.docbookitemtag() != "NONE")
-               xs << xml::StartTag(lay.docbookitemtag(), lay.docbookitemattr());
 }
 
 
 void closeTag(XMLStream & xs, Layout const & lay)
 {
-       if (lay.docbookitemtag() != "NONE")
-               xs << xml::EndTag(lay.docbookitemtag());
-
        string tag = lay.docbooktag();
        if (tag == "Plain Layout")
                tag = "para";