Skip to content

Commit 3d30fcd

Browse files
committed
Add setting to control build output word wrapping
1 parent 5f325e6 commit 3d30fcd

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

LaTeXTools.sublime-settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@
459459
// show up in different colors.
460460
"highlight_build_panel": true,
461461

462+
// Enable automatic word wraping in build output panel.
463+
"build_panel_word_wrap": false,
464+
462465
// Scroll build output panel to top after build finished.
463466
"scroll_build_panel_to_top": false,
464467

docs/settings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ This section refers to setting that can be found in a platform-specific block fo
127127
## Build Panel Settings
128128

129129
* `highlight_build_panel` (`true`): if `true` the build panel will have a syntax applied to highlight any errors and warnings. Otherwise, the standard output panel configuration will be used.
130+
* `build_panel_word_wrap` (`false`): if `true` enable word wrapping in build output panel.
130131
* `scroll_build_panel_to_top` (`false`): if `true` the build output panel is scrolled to top after build finished.
131132
* `hide_build_panel` (`"no_badboxes"`): controls whether or not to hide the build panel after a build is finished. Possible values:
132133
* `"always"`: never show the build panel at all

latextools/make_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def run(
410410
output_view_settings.set("gutter", False)
411411
output_view_settings.set("scroll_past_end", False)
412412
output_view_settings.set("tab_size", 2)
413-
output_view_settings.set("word_wrap", False)
413+
output_view_settings.set("word_wrap", get_setting("build_panel_word_wrap", False, view))
414414

415415
if get_setting("highlight_build_panel", True, view):
416416
output_view_settings.set(

0 commit comments

Comments
 (0)