pub fn append(path: &Path, entry: &NewEntry) -> Result<()>Expand description
Appends an entry to the user’s library, creating the file if needed.
The entry is added as text rather than by re-serialising the whole document, because users are told to hand edit and version this file. Round tripping it through a parser would silently delete their comments and reflow everything they had arranged.