From cfd886868fa8595b045007a2ad673c18c5f222b3 Mon Sep 17 00:00:00 2001 From: TizenOpenSource Date: Tue, 27 Dec 2022 15:39:10 +0900 Subject: Imported Upstream version 1.9.5 --- src/docbookgen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/docbookgen.cpp') 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"; } void DocbookGenerator::startTypewriter() { -- cgit v1.2.3