mirror of
https://gitlab.com/AutumnMeowMeow/jexer
synced 2024-09-19 03:40:20 -06:00
Expose line spacing
This commit is contained in:
parent
8fd88d9ecc
commit
1bb1193b3a
1 changed files with 11 additions and 1 deletions
|
@ -352,7 +352,7 @@ public class TText extends TScrollableWidget {
|
|||
}
|
||||
|
||||
/**
|
||||
* Convenience method used by TWindowLoggerOutput.
|
||||
* Add one line.
|
||||
*
|
||||
* @param line new line to add
|
||||
*/
|
||||
|
@ -446,4 +446,14 @@ public class TText extends TScrollableWidget {
|
|||
reflowData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the number of lines between each paragraph.
|
||||
*
|
||||
* @param lineSpacing the number of blank lines between paragraphs
|
||||
*/
|
||||
public void setLineSpacing(final int lineSpacing) {
|
||||
this.lineSpacing = lineSpacing;
|
||||
reflowData();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue