Skip to content

Commit

Permalink
tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolony committed Dec 10, 2022
1 parent 668ed71 commit af3ead0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/com/bytezone/diskbrowser/applefile/BasicTextFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
public class BasicTextFile extends TextFile
// -----------------------------------------------------------------------------------//
{
private static String underline = "------------------------------------------"
+ "------------------------------------\n";
private static String underline =
"------------------------------------------" + "------------------------------------\n";
private static String fullUnderline = "---------- ------- " + underline;
private int recordLength; // prodos aux
private List<TextBuffer> buffers; // only used if it is a Prodos text file
Expand Down Expand Up @@ -42,6 +42,7 @@ public BasicTextFile (String name, List<TextBuffer> buffers, int auxType, int eo

this.buffers = buffers;
this.eof = eof;

recordLength = auxType;
prodosFile = true;
}
Expand Down Expand Up @@ -167,8 +168,7 @@ private StringBuilder knownLength (StringBuilder text, int recNo)
if (textPreferences.showTextOffsets)
{
line = line.replaceAll ("\\n", "\n ");
text.append (
String.format ("%,10d %,8d %s%n", recNo * recordLength, recNo, line));
text.append (String.format ("%,10d %,8d %s%n", recNo * recordLength, recNo, line));
}
else
text.append (String.format ("%s%n", line));
Expand Down

0 comments on commit af3ead0

Please sign in to comment.