Skip to content

Commit 78c55eb

Browse files
committed
Improved box drawings
1 parent 3b10f35 commit 78c55eb

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Sources/DiffableTextKit/Models/Commit.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
/// Commits update the state of interactive diffable text views.
1717
///
1818
/// ```
19-
/// |+|1|2|_|(|3|4|5|)|_|6|7|8|-|9|#|-|#|#|
20-
/// |x|o|o|x|x|o|o|o|x|x|o|o|o|x|o|x|x|x|x|
19+
/// │+│1│2│_│(│3│4│5│)│_│6│7│8│-│9│#│-│#│#│
20+
/// │x│o│o│x│x│o│o│o│x│x│o│o│o│x│o│x│x│x│x│
2121
/// ```
2222
///
2323
/// **Selection**
@@ -29,8 +29,8 @@
2929
///
3030
/// ```
3131
/// ↓
32-
/// |+|#|#|_|(|#|#|#|)|_|#|#|#|-|#|#|-|#|#|
33-
/// |x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|
32+
/// │+│#│#│_│(│#│#│#│)│_│#│#│#│-│#│#│-│#│#│
33+
/// │x│x│x│x│x│x│x│x│x│x│x│x│x│x│x│x│x│x│x│
3434
/// ```
3535
///
3636
public struct Commit<Value: Equatable>: Equatable {

Sources/DiffableTextKit/Models/Proposal.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
/// Proposals capture user intent and styles are responsible for resolving them.
1717
///
1818
/// ```
19-
/// ↓ ↓ ↓
20-
/// |$|1|2|3| |.| |$|0|.|3| |$|0|.|3|
21-
/// |x|o|o|o| + |o| -> |x|o|o|o| -> |x|o|o|o|
19+
/// ↓ ↓ ↓
20+
/// │$│1│2│3│ │,│ │$│0│.│3│ │$│0│.│3│
21+
/// │x│o│o│o│ + │o│ -> │x│o│o│o│ -> │x│o│o│o│
2222
/// └─ proposal ──┴─ style ────┴─ diff ─────┘
2323
/// ```
2424
///

Sources/DiffableTextKit/Models/Snapshot.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
/// not be selected. A single character can have multiple attributes.
1919
///
2020
/// ```
21-
/// |+|1|2|_|(|3|4|5|)|_|6|7|8|-|9|#|-|#|#|
22-
/// |x|o|o|x|x|o|o|o|x|x|o|o|o|x|o|x|x|x|x|
21+
/// │+│1│2│_│(│3│4│5│)│_│6│7│8│-│9│#│-│#│#│
22+
/// │x│o│o│x│x│o│o│o│x│x│o│o│o│x│o│x│x│x│x│
2323
/// ```
2424
///
2525
/// **Attributes & Characters**
@@ -30,13 +30,13 @@
3030
/// a snapshot is to loop over each character in a composed character sequence.
3131
///
3232
/// ```
33-
/// |🇸🇪| |🇺🇸| |🇸🇪|🇺🇸|
34-
/// |➖| + |➖| -> |➖|➖| (GOOD)
33+
/// │🇸🇪│ │🇺🇸│ │🇸🇪│🇺🇸│
34+
/// │➖│ + │➖│ -> │➖│➖│ (GOOD)
3535
/// ```
3636
///
3737
/// ```
38-
/// |🇸| |🇪| |🇺| |🇸| |🇸🇪|🇺🇸|
39-
/// |➖| + |➖| + |➖| + |➖| -> |➖|➖|➖|➖| (BAD)
38+
/// │🇸│ │🇪│ │🇺│ │🇸│ │🇸🇪│🇺🇸│
39+
/// │➖│ + │➖│ + │➖│ + │➖│ -> │➖│➖│➖│➖│ (BAD)
4040
/// ```
4141
///
4242
public struct Snapshot: BidirectionalCollection, CustomStringConvertible, Equatable,

0 commit comments

Comments
 (0)