diff options
| author | lukeflo | 2025-10-06 11:52:32 +0200 |
|---|---|---|
| committer | lukeflo | 2025-10-06 11:52:32 +0200 |
| commit | ecc4e102a5e8203407ca30f4d7c0abb871fa7111 (patch) | |
| tree | 5d859c8f9859e66507c717727805d86b4543294e /src/tui/ui.rs | |
| parent | db0deb9b6ee59c07ab2f04972184b154925034bd (diff) | |
| parent | f84ebacd1ea47b09c58dd1ef1eaaf70feaacbe0f (diff) | |
| download | bibiman-ecc4e102a5e8203407ca30f4d7c0abb871fa7111.tar.gz bibiman-ecc4e102a5e8203407ca30f4d7c0abb871fa7111.zip | |
Merge pull request 'Parse LaTeX macros in entry fields' (#57) from Klimperfix/bibiman:impl-latex-macro-sanitizing into main
Reviewed-on: https://codeberg.org/lukeflo/bibiman/pulls/57
Reviewed-by: lukeflo <lukeflo@noreply.codeberg.org>
Diffstat (limited to 'src/tui/ui.rs')
| -rw-r--r-- | src/tui/ui.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tui/ui.rs b/src/tui/ui.rs index 3e6e24c..87d8c29 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -894,7 +894,7 @@ pub fn render_selected_item(app: &mut App, cfg: &BibiConfig, frame: &mut Frame, Style::new().fg(cfg.colors.author_color), ), ])); - if cur_entry.subtitle.is_some() { + if let Some(subtitle) = cur_entry.subtitle() { lines.push(Line::from(vec![ Span::styled("Title: ", style_value), Span::styled( @@ -910,7 +910,7 @@ pub fn render_selected_item(app: &mut App, cfg: &BibiConfig, frame: &mut Frame, .add_modifier(Modifier::ITALIC), ), Span::styled( - cur_entry.subtitle(), + subtitle, Style::new() .fg(cfg.colors.title_color) .add_modifier(Modifier::ITALIC), @@ -999,7 +999,7 @@ pub fn render_selected_item(app: &mut App, cfg: &BibiConfig, frame: &mut Frame, } lines.push(Line::from("")); lines.push(Line::from(vec![Span::styled( - cur_entry.abstract_text.clone(), + cur_entry.get_abstract(), Style::new().fg(cfg.colors.main_text_color), )])); lines |
