Skip to main content

org_text

Function org_text 

Source
pub fn org_text(layout: &Layout, id: &str) -> Result<String>
Expand description

One issue’s org text, in full, ready to write to a file.

body_excerpt is a preview and truncates; this does not. It is what a caller wants when the issue is being handed to someone as the thing to work from, rather than glanced at.

§Errors

Returns an error if id is not in the corpus, the heading’s file cannot be read, or the heading looks like secret material.