mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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.
This commit is contained in:
parent
3ed1c7616d
commit
38527d08f1
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user