James Allen 10 лет назад
Родитель
Сommit
263ee43cb5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      services/clsi/app/coffee/DraftModeManager.coffee

+ 2 - 2
services/clsi/app/coffee/DraftModeManager.coffee

@@ -16,6 +16,6 @@ module.exports = DraftModeManager =
 	_injectDraftOption: (content) ->
 		content
 			# With existing options (must be first, otherwise both are applied)
-			.replace(/\\documentclass\[/, "\\documentclass[draft,")
+			.replace(/\\documentclass\[/g, "\\documentclass[draft,")
 			# Without existing options
-			.replace(/\\documentclass\{/, "\\documentclass[draft]{")
+			.replace(/\\documentclass\{/g, "\\documentclass[draft]{")