From b4c3624a1015b6552d8a267dd515181bc361e1b3 Mon Sep 17 00:00:00 2001 From: trustable-code Date: Tue, 20 Mar 2018 18:22:47 +0100 Subject: Update to Nim 0.18.0: \n -> \p --- src/nigui.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nigui.nim b/src/nigui.nim index c906072..f4e49ef 100755 --- a/src/nigui.nim +++ b/src/nigui.nim @@ -920,7 +920,7 @@ var fDefaultFontSize = 15 proc raiseError(msg: string, showAlert = true, title = "NiGui Error") = if showAlert: - alert(nil, msg & "\n\n" & getStackTrace(), title) + alert(nil, msg & "\p\p" & getStackTrace(), title) raise newException(Exception, msg) proc handleException() = @@ -2341,7 +2341,7 @@ proc init(textArea: TextArea) = method addText(textArea: TextArea, text: string) = textArea.text = textArea.text & text -method addLine(textArea: TextArea, text = "") = textArea.addtext(text & "\n") +method addLine(textArea: TextArea, text = "") = textArea.addtext(text & "\p") method scrollToBottom(textArea: TextArea) = discard # has to be implemented by NativeTextBox -- cgit v1.2.3