gnucash maint: Bug 775912 - Tips of the Day shows content only once very 3 times
John Ralls
jralls at code.gnucash.org
Tue Dec 13 14:53:36 EST 2016
Updated via https://github.com/Gnucash/gnucash/commit/38527d08 (commit)
from https://github.com/Gnucash/gnucash/commit/3ed1c761 (commit)
commit 38527d08f1c58afeb27ac6ab08bca4487f906ec5
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Dec 13 11:52:40 2016 -0800
Bug 775912 - Tips of the Day shows content only once very 3 times
Remove extra line-feeds from CMake generation of tips_of_the_day.list. They're unneeded and mess up windows parsing the file.
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 1c6c9c2..57f6dfe 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -44,14 +44,9 @@ EXECUTE_PROCESS(
FILE(STRINGS ${CMAKE_CURRENT_BINARY_DIR}/tip_of_the_day.list.tmp TIP_OF_THE_DAY_LINES)
SET(TOTD_OUTPUT "")
-SET(FIRST_LINE TRUE)
FOREACH(line ${TIP_OF_THE_DAY_LINES})
STRING(REGEX REPLACE "^ *\"" "" line2 "${line}")
STRING(REGEX REPLACE "\" *$" "" line3 "${line2}")
- IF (NOT FIRST_LINE)
- LIST(APPEND TOTD_OUTPUT "\n\n")
- ENDIF()
- SET(FIRST_LINE FALSE)
LIST(APPEND TOTD_OUTPUT "${line3}\n")
ENDFOREACH()
Summary of changes:
doc/CMakeLists.txt | 5 -----
1 file changed, 5 deletions(-)
More information about the gnucash-changes
mailing list