]> git.lyx.org Git - lyx.git/commitdiff
DocBook: fix output in Layout::write.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 12 Sep 2020 01:21:08 +0000 (03:21 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Sep 2020 18:43:41 +0000 (20:43 +0200)
lib/layouts/aastex.layout
lib/layouts/shapepar.module
lib/layouts/stdstarsections.inc
src/Layout.cpp

index 78089a45c974c7c6aeeec733b2b5551fdfade53d..37dbd0713033998577547a3f45878a3588d07328 100644 (file)
@@ -204,7 +204,7 @@ Style Altaffilation
          Color         green
        EndFont
        DocBookTag                        affiliation
-       DocBookAttr                       role="alternate"
+       DocBookAttr                       role='alternate'
        DocBookWrapperTag                 author
        DocBookWrapperMergeWithPrevious   true
        DocBookItemTag                    orgname
index 6b38cdfbbf7338e26e910713fd1da09f874dbc3c..2b2fbfe32e16534c36dfa1c81b2247dec398839b 100644 (file)
@@ -36,50 +36,50 @@ Style "CD label"
        Align           Block
        LabelType       No_Label
        DocBookWrapperTag  sidebar
-       DocBookWrapperAttr role="cd-label"
+       DocBookWrapperAttr role='cd-label'
        DocBookTag  para
 End
 
 Style "Circle"
        CopyStyle       "CD label"
        LatexName       circlepar
-       DocBookWrapperAttr role="circle"
+       DocBookWrapperAttr role='circle'
 End
 
 Style "Diamond"
        CopyStyle       "CD label"
        LatexName       diamondpar
-       DocBookWrapperAttr role="diamond"
+       DocBookWrapperAttr role='diamond'
 End
 
 Style "Heart"
        CopyStyle       "CD label"
        LatexName       heartpar
-       DocBookWrapperAttr role="heart"
+       DocBookWrapperAttr role='heart'
 End
 
 Style "Hexagon"
        CopyStyle       "CD label"
        LatexName       hexagonpar
-       DocBookWrapperAttr role="hexagon"
+       DocBookWrapperAttr role='hexagon'
 End
 
 Style "Nut"
        CopyStyle       "CD label"
        LatexName       nutpar
-       DocBookWrapperAttr role="nut"
+       DocBookWrapperAttr role='nut'
 End
 
 Style "Square"
        CopyStyle       "CD label"
        LatexName       squarepar
-       DocBookWrapperAttr role="square"
+       DocBookWrapperAttr role='square'
 End
 
 Style "Star"
        CopyStyle       "CD label"
        LatexName       starpar
-       DocBookWrapperAttr role="star"
+       DocBookWrapperAttr role='star'
 End
 
 # now the shapes defined in the .def files
@@ -87,49 +87,49 @@ End
 Style "Candle"
        CopyStyle       "CD label"
        LatexName       shapepar{\candle}
-       DocBookWrapperAttr role="candle"
+       DocBookWrapperAttr role='candle'
 End
 
 Style "Drop down"
        CopyStyle       "CD label"
        LatexName       droppar
-       DocBookWrapperAttr role="drop-down"
+       DocBookWrapperAttr role='drop-down'
 End
 
 Style "Drop up"
        CopyStyle       "CD label"
        LatexName       dropuppar
-       DocBookWrapperAttr role="drop-up"
+       DocBookWrapperAttr role='drop-up'
 End
 
 Style "TeX"
        CopyStyle       "CD label"
        LatexName       shapepar{\TeXshape}
-       DocBookWrapperAttr role="tex"
+       DocBookWrapperAttr role='tex'
 End
 
 Style "Triangle up"
        CopyStyle       "CD label"
        LatexName       triangleuppar
-       DocBookWrapperAttr role="triangle-up"
+       DocBookWrapperAttr role='triangle-up'
 End
 
 Style "Triangle down"
        CopyStyle       "CD label"
        LatexName       triangledownpar
-       DocBookWrapperAttr role="triangle-down"
+       DocBookWrapperAttr role='triangle-down'
 End
 
 Style "Triangle left"
        CopyStyle       "CD label"
        LatexName       triangleleftpar
-       DocBookWrapperAttr role="triangle-left"
+       DocBookWrapperAttr role='triangle-left'
 End
 
 Style "Triangle right"
        CopyStyle       "CD label"
        LatexName       trianglerightpar
-       DocBookWrapperAttr role="triangle-right"
+       DocBookWrapperAttr role='triangle-right'
 End
 
 # finally the low-level commands
index 60354b1dd339eb8ca787ac5ba539f2ab50cb6ebc..0159b07b524d0c826b5362ca06d4c1692e999c7a 100644 (file)
@@ -49,7 +49,7 @@ Style Section*
        LabelCounter    ""
        ResetArgs       1
        DocBookTag            bridgehead
-       DocBookAttr           renderas="sect1"
+       DocBookAttr           renderas='sect1'
        DocBookSectionTag     NONE
        DocBookForceAbstractTag NONE
 End
@@ -64,7 +64,7 @@ Style Subsection*
        LabelCounter    ""
        ResetArgs       1
        DocBookTag            bridgehead
-       DocBookAttr           renderas="sect2"
+       DocBookAttr           renderas='sect2'
        DocBookSectionTag     NONE
        DocBookForceAbstractTag NONE
 End
@@ -79,7 +79,7 @@ Style Subsubsection*
        LabelCounter    ""
        ResetArgs       1
        DocBookTag            bridgehead
-       DocBookAttr           renderas="sect3"
+       DocBookAttr           renderas='sect3'
        DocBookSectionTag     NONE
        DocBookForceAbstractTag NONE
 End
@@ -94,7 +94,7 @@ Style Paragraph*
        LabelCounter    ""
        ResetArgs       1
        DocBookTag            bridgehead
-       DocBookAttr           renderas="sect4"
+       DocBookAttr           renderas='sect4'
        DocBookSectionTag     NONE
        DocBookForceAbstractTag NONE
 End
@@ -109,7 +109,7 @@ Style Subparagraph*
        LabelCounter    ""
        ResetArgs       1
        DocBookTag            bridgehead
-       DocBookAttr           renderas="sect5"
+       DocBookAttr           renderas='sect5'
        DocBookSectionTag     NONE
        DocBookForceAbstractTag NONE
 End
index 102410d534a1e9f1029076eb53053b188e413d0a..f5e6f771308ff6a476852adf7995d705fa3a2ffb 100644 (file)
@@ -1643,7 +1643,7 @@ void Layout::write(ostream & os) const
        if(!docbooktag_.empty())
                os << "\tDocBookTag " << docbooktag_ << '\n';
        if(!docbookattr_.empty())
-               os << "\tDocBookAttr " << docbookattr_ << '\n';
+               os << "\tDocBookAttr \"" << docbookattr_ << "\"\n";
        if(!docbooktagtype_.empty())
                os << "\tDocBookTagType " << docbooktagtype_ << '\n';
        if(!docbookininfo_.empty())
@@ -1669,7 +1669,7 @@ void Layout::write(ostream & os) const
                os << "\tDocBookItemWrapperAttr " << docbookitemwrapperattr_ << '\n';
        if(!docbookitemwrappertagtype_.empty())
                os << "\tDocBookItemWrapperTagType " << docbookitemwrappertagtype_ << '\n';
-       os << "\tDocBookItemWrapperMergeWithPrevious " << docbookwrappermergewithprevious_ << '\n';
+       os << "\tDocBookWrapperMergeWithPrevious " << docbookwrappermergewithprevious_ << '\n';
        if(!docbookitemlabeltag_.empty())
                os << "\tDocBookItemLabelTag " << docbookitemlabeltag_ << '\n';
        if(!docbookitemlabelattr_.empty())