summaryrefslogtreecommitdiff
path: root/src/docbookgen.cpp
diff options
context:
space:
mode:
authorTizenOpenSource <tizenopensrc@samsung.com>2022-12-27 15:39:10 +0900
committerTizenOpenSource <tizenopensrc@samsung.com>2022-12-27 15:39:10 +0900
commitcfd886868fa8595b045007a2ad673c18c5f222b3 (patch)
tree5d1b3cd3c098c0e5238e4a6a9be351a67f2d6bc1 /src/docbookgen.cpp
parent9cf4982ab5fc6d964e1a024ff91a72d1fee5dc00 (diff)
downloaddoxygen-cfd886868fa8595b045007a2ad673c18c5f222b3.tar.gz
doxygen-cfd886868fa8595b045007a2ad673c18c5f222b3.tar.bz2
doxygen-cfd886868fa8595b045007a2ad673c18c5f222b3.zip
Imported Upstream version 1.9.5upstream/1.9.5
Diffstat (limited to 'src/docbookgen.cpp')
-rw-r--r--src/docbookgen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/docbookgen.cpp b/src/docbookgen.cpp
index ac502a2..00a0e86 100644
--- a/src/docbookgen.cpp
+++ b/src/docbookgen.cpp
@@ -335,7 +335,7 @@ DB_GEN_C
}
pageName = fileName;
relPath = relativePathToRoot(fileName);
- if (fileName.right(4)!=".xml") fileName+=".xml";
+ if (!fileName.endsWith(".xml")) fileName+=".xml";
startPlainFile(fileName);
m_codeGen.setRelativePath(relPath);
m_codeGen.setSourceFileName(stripPath(fileName));
@@ -761,12 +761,12 @@ DB_GEN_C
void DocbookGenerator::writeNonBreakableSpace(int n)
{
DB_GEN_C
- for (int i=0;i<n;i++) m_t << " ";
+ for (int i=0;i<n;i++) m_t << "&#160;";
}
void DocbookGenerator::lineBreak(const QCString &)
{
DB_GEN_C
- m_t << "\n";
+ m_t << "<?linebreak?>";
}
void DocbookGenerator::startTypewriter()
{