From 38527d08f1c58afeb27ac6ab08bca4487f906ec5 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 13 Dec 2016 11:52:40 -0800 Subject: [PATCH] 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. --- doc/CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 1c6c9c21c07..57f6dfeecc3 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()