Mercurial Hosting > luan
comparison src/luan/modules/parsers/LuanToString.java @ 1554:83249ce59d13
minor fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 06 Oct 2020 19:36:57 -0600 |
parents | 26c51acf00f3 |
children | b89212fd04b5 |
comparison
equal
deleted
inserted
replaced
1553:26c51acf00f3 | 1554:83249ce59d13 |
---|---|
178 sb.append( '[' ); | 178 sb.append( '[' ); |
179 toString( key, sb, indented, keySettings ); | 179 toString( key, sb, indented, keySettings ); |
180 sb.append( ']' ); | 180 sb.append( ']' ); |
181 } | 181 } |
182 sb.append( settings.compressed ? "=" : " = " ); | 182 sb.append( settings.compressed ? "=" : " = " ); |
183 LuanTable options = (LuanTable)subOptions.get(key); | 183 if( subOptions != null ) { |
184 if( options != null ) { | 184 LuanTable options = (LuanTable)subOptions.get(key); |
185 settings = settings.cloneSettings(); | 185 if( options != null ) { |
186 settings.applyOptions(options); | 186 settings = settings.cloneSettings(); |
187 settings.applyOptions(options); | |
188 } | |
187 } | 189 } |
188 toString( entry.getValue(), sb, indented, settings ); | 190 toString( entry.getValue(), sb, indented, settings ); |
189 } | 191 } |
190 | 192 |
191 private void indent(StringBuilder sb,int indented) { | 193 private void indent(StringBuilder sb,int indented) { |