|
@@ -84,6 +84,21 @@ public class Line {
|
84
|
84
|
* @return Line at the specified number or null
|
85
|
85
|
*/
|
86
|
86
|
public String getText() {
|
|
87
|
+ StringBuilder lineText = new StringBuilder();
|
|
88
|
+ for (String linePart : lineParts) {
|
|
89
|
+ lineText.append(linePart);
|
|
90
|
+ }
|
|
91
|
+ return Styliser.stipControlCodes(lineText.toString());
|
|
92
|
+ }
|
|
93
|
+
|
|
94
|
+ /**
|
|
95
|
+ * Returns the Line text at the specified number.
|
|
96
|
+ *
|
|
97
|
+ * @return Line at the specified number or null
|
|
98
|
+ *
|
|
99
|
+ * @since 0.6.3
|
|
100
|
+ */
|
|
101
|
+ public String getStyledText() {
|
87
|
102
|
StringBuilder lineText = new StringBuilder();
|
88
|
103
|
for (String linePart : lineParts) {
|
89
|
104
|
lineText.append(linePart);
|