Documentation
¶
Overview ¶
Package wrap soft-wraps long lines in journal files to approximately 80 characters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SoftWrap ¶
SoftWrap breaks a long line at word boundaries, preserving leading indent.
Parameters:
- line: Single line to wrap
- width: Target line width in characters
Returns:
- []string: Wrapped lines preserving the original indentation
func SoftWrapContent ¶
SoftWrapContent wraps long lines in source journal files to ~80 characters. Skips only frontmatter and table rows. Wraps everything else including content inside code fences - journal files are reference material, not executable code.
Parameters:
- content: Journal entry content with potentially long lines
Returns:
- string: Content with long lines soft-wrapped at word boundaries
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.