mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-09-27 09:55:28 +00:00
tidying
This commit is contained in:
parent
668ed719fa
commit
af3ead0441
@ -8,8 +8,8 @@ import com.bytezone.diskbrowser.utilities.HexFormatter;
|
|||||||
public class BasicTextFile extends TextFile
|
public class BasicTextFile extends TextFile
|
||||||
// -----------------------------------------------------------------------------------//
|
// -----------------------------------------------------------------------------------//
|
||||||
{
|
{
|
||||||
private static String underline = "------------------------------------------"
|
private static String underline =
|
||||||
+ "------------------------------------\n";
|
"------------------------------------------" + "------------------------------------\n";
|
||||||
private static String fullUnderline = "---------- ------- " + underline;
|
private static String fullUnderline = "---------- ------- " + underline;
|
||||||
private int recordLength; // prodos aux
|
private int recordLength; // prodos aux
|
||||||
private List<TextBuffer> buffers; // only used if it is a Prodos text file
|
private List<TextBuffer> buffers; // only used if it is a Prodos text file
|
||||||
@ -42,6 +42,7 @@ public class BasicTextFile extends TextFile
|
|||||||
|
|
||||||
this.buffers = buffers;
|
this.buffers = buffers;
|
||||||
this.eof = eof;
|
this.eof = eof;
|
||||||
|
|
||||||
recordLength = auxType;
|
recordLength = auxType;
|
||||||
prodosFile = true;
|
prodosFile = true;
|
||||||
}
|
}
|
||||||
@ -167,8 +168,7 @@ public class BasicTextFile extends TextFile
|
|||||||
if (textPreferences.showTextOffsets)
|
if (textPreferences.showTextOffsets)
|
||||||
{
|
{
|
||||||
line = line.replaceAll ("\\n", "\n ");
|
line = line.replaceAll ("\\n", "\n ");
|
||||||
text.append (
|
text.append (String.format ("%,10d %,8d %s%n", recNo * recordLength, recNo, line));
|
||||||
String.format ("%,10d %,8d %s%n", recNo * recordLength, recNo, line));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
text.append (String.format ("%s%n", line));
|
text.append (String.format ("%s%n", line));
|
||||||
|
Loading…
Reference in New Issue
Block a user