From 0694d40bd3a97cea4d9e7744b99bafeb4bf7e85f Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 4 Aug 2015 11:00:02 -0700 Subject: [PATCH] Switch the default whitespace mode to pre-line This mode will preserve new lines, allow breaks, but collapse whitespace. That means whitespace at the start of lines will be collapsed. --- sky/engine/core/rendering/style/RenderStyle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sky/engine/core/rendering/style/RenderStyle.h b/sky/engine/core/rendering/style/RenderStyle.h index 46fa3891807..d1eb396ea0d 100644 --- a/sky/engine/core/rendering/style/RenderStyle.h +++ b/sky/engine/core/rendering/style/RenderStyle.h @@ -969,7 +969,7 @@ public: static EPosition initialPosition() { return StaticPosition; } static EUnicodeBidi initialUnicodeBidi() { return UBNormal; } static EVisibility initialVisibility() { return VISIBLE; } - static EWhiteSpace initialWhiteSpace() { return PRE_WRAP; } + static EWhiteSpace initialWhiteSpace() { return PRE_LINE; } static short initialHorizontalBorderSpacing() { return 0; } static short initialVerticalBorderSpacing() { return 0; } static Color initialColor() { return Color::white; }