4. Removing incidental white spaces in text blocks
Removing incidental white spaces in text blocks is typically a job accomplished by the compiler via a special algorithm. To understand the main aspects of this algorithm, let’s go over it with the following example:
String json = """ |Compiler:
----{ |Line 01: 4 lws
----++"widget": { |Line 02: 6 lws
----++++"debug": "on", |Line 03: 8 lws
----++++"window": { |Line 04: 8 lws
----++++++"title": "Sample Widget 1", |Line 05: 10 lws
----++++++"name": "back_window" |Line 06: 10 lws
----++++}, |Line 07: 8 lws
----++++"image": { |Line 08: 8 lws
----++++++"src": "images\\sw.png" |Line 09: 10 lws
----++++}, |Line 10:...