Skip to content

Commit

Permalink
Bug 775912 - Tips of the Day shows content only once very 3 times
Browse files Browse the repository at this point in the history
Remove extra line-feeds from CMake generation of tips_of_the_day.list. They're unneeded and mess up windows parsing the file.
  • Loading branch information
jralls committed Dec 13, 2016
1 parent 3ed1c76 commit 38527d0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 38527d0

Please sign in to comment.