mattm591
21st May 2010 11:32 UTC
RTF license agreement not displaying line breaks correctly
I have added a license agreement to my installer.
!insertmacro MUI_PAGE_LICENSE "includes\eula.rtf"
This RTF document contains several line breaks which display correctly in Wordpad, Word and also in the installer I previously created with InstallShield.
However, the installer I created with NSIS ignores them and displays as one single line with extra spaces replacing the line breaks.
Could someone please help me get this to display correctly.
I'm using the latest NSIS (2.46)
MSG
21st May 2010 12:41 UTC
This topic has been discussed many times before. Please search the forums before asking.
mattm591
21st May 2010 13:01 UTC
Thanks for that helpful reply.
I had searched both Google and the NSIS forum before asking the question, the only thing I could find that came close to answering the questions was someone searching for a way to display images within their license agreement and being told they'd need to create a custom page.
I'm hoping this is not the case for line breaks, so if you could show me a topic where someone has answered the how to show line breaks from an RTF file within the license section that would be helpful, as I am unable to find such a topic myself when searching.
Animaether
21st May 2010 13:43 UTC
Can't say neither forum nor google search give me anything useful either.
Can't say I've ever had linebreak problems, though. Could it be that your RTF uses a particular type of linebreak? I.e. what if you start up wordpad, simply enter:
---
line one
line two
line three
---
save the file as an rtf, and use that file in your installer.. does that display correctly?
mattm591
21st May 2010 13:57 UTC
Animaether, thanks for that.
It turns out that it was just something wrong with the RTF I have, probably to do with the way it was made (I think someone just re-saved a .doc as .rtf).
I'll recreate the file in WordPad which should solve it.
Ta
Wizou
21st May 2010 14:00 UTC
Yep... always use Wordpad only for making RTF compatible with Windows RichEdit controls
MSG
22nd May 2010 08:05 UTC
Originally posted by mattm591
I had searched both Google and the NSIS forum before asking the question[...]
I stand corrected, I didn't read your question properly.
mattm591
22nd May 2010 08:23 UTC
Originally posted by Wizou
Yep... always use Wordpad only for making RTF compatible with Windows RichEdit controls
Will do so in future, and also, many thanks for the nsisXML plugin you've made.
I have found that invaluable for a number of installers!
Originally posted by MSG
I stand corrected, I didn't read your question properly.
No worries.
CrushBug
25th May 2010 22:20 UTC
We take the EULAs we get from Legal (which are RTF files) and open and save them in WordPad. Not only does it fix any formatting issues, it also makes the files 1/4 of the original size.