summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/latexindent/LatexIndent/GetYamlSettings.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/latexindent/LatexIndent/GetYamlSettings.pm')
-rw-r--r--Master/texmf-dist/scripts/latexindent/LatexIndent/GetYamlSettings.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/GetYamlSettings.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/GetYamlSettings.pm
index 24e1291e754..96577d28d0a 100644
--- a/Master/texmf-dist/scripts/latexindent/LatexIndent/GetYamlSettings.pm
+++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/GetYamlSettings.pm
@@ -435,6 +435,13 @@ sub yaml_read_settings {
$logger->info(
"Not showing settings in the log file (see showEveryYamlRead and showAmalgamatedSettings).");
}
+
+ # warning to log file if modifyLineBreaks specified and m switch not active
+ if ( ${ $userSettings->[0] }{modifyLineBreaks} and !$is_m_switch_active ) {
+ $logger->warn("*modifyLineBreaks specified and m switch is *not* active");
+ $logger->warn("perhaps you intended to call");
+ $logger->warn(" latexindent.pl -m -l $settings ${$self}{fileName}");
+ }
}
else {
# otherwise print a warning that we can not read userSettings.yaml