changeset 638:3ab4f282f0bd 0.16

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Mar 2016 22:52:41 -0700
parents 6ea90dc10375
children 54f118abc842
files core/src/luan/modules/parsers/BBCode.java
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
diff -r 6ea90dc10375 -r 3ab4f282f0bd core/src/luan/modules/parsers/BBCode.java
--- a/core/src/luan/modules/parsers/BBCode.java	Thu Mar 03 12:38:24 2016 -0700
+++ b/core/src/luan/modules/parsers/BBCode.java	Thu Mar 03 22:52:41 2016 -0700
@@ -12,25 +12,25 @@
 public final class BBCode {
 
 	public static String toHtml(LuanState luan,String bbcode,LuanFunction quoter) throws LuanException {
-		return new BBCode(luan,bbcode,true,quoter).parse();
+		return new BBCode(luan,bbcode,quoter,true).parse();
 	}
 
 	public static String toText(LuanState luan,String bbcode,LuanFunction quoter) throws LuanException {
-		return new BBCode(luan,bbcode,false,quoter).parse();
+		return new BBCode(luan,bbcode,quoter,false).parse();
 	}
 
 	private final LuanState luan;
 	private final Parser parser;
+	private final LuanFunction quoter;
 	private final boolean toHtml;
-	private final LuanFunction quoter;
 
-	private BBCode(LuanState luan,String text,boolean toHtml,LuanFunction quoter) throws LuanException {
+	private BBCode(LuanState luan,String text,LuanFunction quoter,boolean toHtml) throws LuanException {
 		Utils.checkNotNull(luan,text,1);
-		Utils.checkNotNull(luan,quoter,3);
+		Utils.checkNotNull(luan,quoter,2);
 		this.luan = luan;
 		this.parser = new Parser(text);
+		this.quoter = quoter;
 		this.toHtml = toHtml;
-		this.quoter = quoter;
 	}
 
 	private String parse() throws LuanException {