Ivan Komarov
00a20bceff
Fix formatting failures on Windows
...
When newline_style is set to Windows, an empty line inside of a macro
results in `\r` being passed to the `fold()` in `MacroBranch::rewrite()`.
`\r` is technically not an empty string, so we try to indent it, leaving
trailing whitespaces behind, even though that was not intended
(as far as I can see).
This commit replaces the `!l.is_empty()` check with calling
`is_empty_line()`, since trying to indent any whitespace-only string
will probably result in problematic trailing whitespaces.
Fixes : #2810
2018-10-28 02:37:55 +03:00
..
2018-10-06 10:59:47 +03:00
2018-10-02 00:41:56 +02:00
2018-09-22 00:09:11 +02:00
2018-09-07 14:48:52 +02:00
2018-09-28 11:06:29 +09:00
2018-10-15 11:18:37 +09:00
2018-08-31 00:04:23 -07:00
2018-08-31 00:04:23 -07:00
2018-08-31 00:04:23 -07:00
2018-09-13 01:06:02 +02:00
2018-09-26 09:44:13 -03:00
2018-08-31 00:04:23 -07:00
2018-08-31 18:20:28 +09:00
2018-10-06 16:32:38 +03:00
2018-10-15 12:09:53 +13:00
2018-09-19 23:19:24 +09:00
2018-10-08 14:48:15 +02:00
2018-09-13 02:40:24 +02:00
2018-10-11 23:34:36 +09:00
2018-10-12 15:20:42 +13:00
2018-09-22 12:16:38 +02:00
2018-09-30 23:28:03 +09:00
2018-09-19 23:19:24 +09:00
2018-09-19 23:19:24 +09:00
2018-08-30 23:38:40 +09:00
2018-10-19 12:28:00 +02:00
2018-09-26 09:44:13 -03:00
2018-08-24 14:39:05 +09:00
2018-10-17 14:21:04 +09:00
2018-08-16 19:55:15 +02:00
2018-08-16 19:55:15 +02:00
2018-09-19 23:19:24 +09:00
2018-09-11 08:54:43 +03:00
2018-10-08 13:50:00 +09:00
2018-10-12 20:41:56 +02:00
2018-09-19 23:19:24 +09:00
2018-10-28 02:37:55 +03:00
2018-09-22 00:09:11 +02:00
2018-08-31 16:25:01 +03:00
2018-08-31 00:04:23 -07:00
2018-08-31 00:04:23 -07:00
2018-08-31 15:25:08 +03:00
2018-08-24 00:58:21 -04:00
2018-08-27 13:44:56 -04:00
2018-09-18 00:01:51 +02:00
2018-10-15 23:24:35 +02:00
2018-10-13 14:12:43 -03:00
2018-10-15 23:24:35 +02:00
2018-09-21 18:51:19 +01:00
2018-10-06 16:32:27 +03:00
2018-10-15 11:18:37 +09:00
2018-10-06 10:59:47 +03:00
2018-10-24 12:11:11 +02:00
2018-10-23 19:00:42 -04:00
2018-09-11 13:30:36 +09:00
2018-08-31 10:49:39 +09:00
2018-10-08 13:50:00 +09:00
2018-09-11 08:54:43 +03:00
2018-10-19 12:28:00 +02:00
2018-09-19 23:19:24 +09:00
2018-08-26 13:19:44 +09:00
2018-10-19 12:28:00 +02:00
2018-08-12 23:55:34 +09:00
2018-09-01 16:18:27 +09:00
2018-10-19 12:28:00 +02:00
2018-10-19 12:28:00 +02:00
2018-10-08 14:48:15 +02:00
2018-10-06 10:59:47 +03:00
2018-10-06 10:59:47 +03:00
2018-10-08 14:48:15 +02:00
2018-10-14 21:47:50 +09:00
2018-10-26 16:36:01 +09:00
2018-09-11 12:34:21 +03:00
2018-10-13 09:57:43 +02:00