mf2_printer 0.1.2

Printer for MessageFormat 2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![doc = include_str!("../README.md")]

mod printer;

use mf2_parser::ast::Message;
use mf2_parser::SourceTextInfo;
use printer::Printer;

/// Print the given message as a string. If [SourceTextInfo] is provided, the
/// printer will use it to attempt to preserve some original empty line
/// placements.
pub fn print(ast: &Message, info: Option<&SourceTextInfo>) -> String {
  Printer::new(ast, info).print()
}