+ fix: obsolete newline after .ini-file sections with comments

This commit is contained in:
Rainer Kottenhoff 2019-07-21 17:53:54 +02:00
parent a140588a8e
commit d2867d8263
4 changed files with 7 additions and 5 deletions

View File

@ -1 +1 @@
2401
2402

View File

@ -3,7 +3,7 @@
<assemblyIdentity
name="Notepad3"
processorArchitecture="*"
version="5.19.721.2401"
version="5.19.721.2402"
type="win32"
/>
<description>Notepad3 BETA</description>

View File

@ -2557,8 +2557,10 @@ CSimpleIniTempl<SI_CHAR,SI_STRLESS,SI_CONVERTER>::Save(
for ( ; iValue != oValues.end(); ++iValue) {
// write out the comment if there is one
if (iValue->pComment) {
a_oOutput.Write(SI_NEWLINE_A);
bNeedNewLine = false;
if (bNeedNewLine) {
a_oOutput.Write(SI_NEWLINE_A);
bNeedNewLine = false;
}
if (!OutputMultiLineText(a_oOutput, convert, iValue->pComment)) {
return SI_FAIL;
}

View File

@ -8,7 +8,7 @@
#define VERSION_MAJOR 5
#define VERSION_MINOR 19
#define VERSION_REV 721
#define VERSION_BUILD 2401
#define VERSION_BUILD 2402
#define SCINTILLA_VER 420
#define ONIGURUMA_REGEX_VER 6.9.3
#define VERSION_PATCH BETA