Skip to content

Commit

Permalink
text formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Jan 17, 2025
1 parent 23e8d41 commit bb70994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/compare/TextDiff.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public fun diff(original: String, revised: String): String {
Format description:
• [-c-] indicates character 'c' present in original text but not in revised
• {+c+} indicates character 'c' present in revised text but not in original
• ⠀ represents a space character in differences to make them visible
• ⠀ (braille pattern blank, U+2800) represents a space character in differences to make them visible
• Each character change is marked separately for precise difference tracking
• Line numbers are 1-based
• Structural changes show exact position of insertion or deletion
Expand Down
2 changes: 1 addition & 1 deletion src/commonTest/kotlin/compare/TextDiffTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class TextDiffTest {
└─ differences
• line 2: indentation difference
- original: " <p>Hello</p>" (4 spaces)
- revised: " <p>Hello</p>" (3 spaces)
- revised: " <p>Hello</p>" (3 spaces)
- changes: "[-⠀-]<p>Hello</p>"
""".trimIndent()
Expand Down

0 comments on commit bb70994

Please sign in to comment.