mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-11-22 15:46:51 +03:00
🐛 Escape plaintext documents
This commit is contained in:
parent
00ab2f4542
commit
d58aa83d71
@ -8,12 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Changed
|
||||
- Favicon support removed (#199)
|
||||
- Bookmarks are stored using XML in the XBEL format, old bookmarks are transferred (#68)
|
||||
- Text no longer disappears under the left margin when scrolling like in the previous release (#197)
|
||||
- Text no longer disappears under the left margin when scrolling (regression from v1.8.0) (#197)
|
||||
|
||||
### Fixed
|
||||
- Help text is now the same color as `regular_text` in the theme config
|
||||
- Non-ASCII (multibyte) characters can now be used as keybindings (#198, #200)
|
||||
- Possible subscription update race condition on startup
|
||||
- Plaintext documents are escaped properly (regression from v1.8.0)
|
||||
|
||||
|
||||
## [1.8.0] - 2021-02-17
|
||||
|
@ -41,7 +41,7 @@ func RenderPlainText(s string) string {
|
||||
// It used to add a left margin, now this is done elsewhere.
|
||||
// The function is kept for convenience and in case rendering
|
||||
// is needed in the future.
|
||||
return s
|
||||
return cview.Escape(s)
|
||||
}
|
||||
|
||||
// wrapLine wraps a line to the provided width, and adds the provided prefix and suffix to each wrapped line.
|
||||
|
Loading…
Reference in New Issue
Block a user