Commit Graph
21 Commits
Author SHA1 Message Date
Philipp Paulweber 5e655032bc Refactor AsciiDocExporter emitting using the MarkupExporter trait 2022-05-26 22:38:25 +02:00
Philipp Paulweber 2443383fc8 Export of Emacs org-mode table support
* added new command-line option '--export-orgmode <FILE>' to create
  Emacs org-mode table output by reusing markup result formatting
* based on the new MarkdownFormatter trait, see PR #490
2022-05-15 21:57:35 +02:00
Philipp Paulweber 69d38a5f8e Refactor MarkupExporter to omit intermediate table result creation and simplify MarkupFormatter emitting
* see: https://github.com/sharkdp/hyperfine/pull/490#pullrequestreview-932424652
2022-05-15 21:37:40 +02:00
Philipp Paulweber 9dc87ac349 Refactor MarkdownExporter emitting using a generic MarkupFormatter trait
* see: https://github.com/sharkdp/hyperfine/pull/490#issuecomment-1076784074
2022-05-15 21:37:40 +02:00
Philipp Paulweber 50cf7de915 Refactor Markdown table emitting to generic Markup function 2022-05-15 21:37:40 +02:00
Philipp Paulweber 3b1fc32626 Refactor Markdown table contents generation to generic Markup function 2022-05-15 21:37:40 +02:00
Philipp Paulweber 23d9fe2595 Refactor Markdown with Markup by using generic table emitter 2022-05-15 21:37:40 +02:00
philipp e867366197 Use byte literal instead of as u8 2019-07-17 21:11:44 +02:00
philipp 16210a1d13 Pass Copyable enums by value 2019-07-17 21:11:44 +02:00
philipp 78d249d656 Use slices instead of borrowed string 2019-07-17 21:11:44 +02:00
philipp c0ada7d044 Use slices instead of borrowed vectors 2019-07-17 21:11:44 +02:00
philipp f3f8c9ca98 Avoid redundant ref 2019-07-17 21:11:44 +02:00
philipp 76119e6664 Use f64::from instead of as f64 2019-07-17 21:11:44 +02:00
philipp a0bd0248ce Avoid redundant explicit borrow 2019-07-17 21:11:44 +02:00
philipp 5849446315 Avoid long literal without separator 2019-07-17 21:11:44 +02:00
philipp cfd298ef14 Avoid redundant return 2019-07-17 21:11:44 +02:00
philipp 5e4e383dca Avoid redundant field names 2019-07-17 21:11:44 +02:00
philipp 3f79985473 Factor common operations into closure 2019-07-17 21:11:44 +02:00
philipp a5ce659b9c Avoid closure 2019-07-17 21:11:44 +02:00
philipp b573617a7c Return value directly 2019-07-17 21:11:44 +02:00
philipp fdc92cb204 Reduce repetition 2019-02-25 07:04:40 +01:00