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:
John Ralls 2016-12-13 11:52:40 -08:00
parent 3ed1c7616d
commit 38527d08f1

View File

@ -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()