We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c66d784 commit 7e7f101Copy full SHA for 7e7f101
src/formatter/mod.rs
@@ -7,7 +7,7 @@ pub mod style;
7
8
use self::style::{Style, StyleClass, Stylesheet};
9
10
-#[cfg(feature = "ansi_term")]
+#[cfg(feature = "color")]
11
use crate::stylesheets::color::AnsiTermStylesheet;
12
use crate::{display_list::*, stylesheets::no_color::NoColorStylesheet};
13
@@ -26,7 +26,7 @@ fn is_annotation_empty(annotation: &Annotation<'_>) -> bool {
26
.all(|fragment| fragment.content.is_empty())
27
}
28
29
30
#[inline]
31
pub fn get_term_style(color: bool) -> Box<dyn Stylesheet> {
32
if color {
@@ -36,7 +36,7 @@ pub fn get_term_style(color: bool) -> Box<dyn Stylesheet> {
36
37
38
39
-#[cfg(not(feature = "ansi_term"))]
+#[cfg(not(feature = "color"))]
40
41
pub fn get_term_style(_color: bool) -> Box<dyn Stylesheet> {
42
Box::new(NoColorStylesheet)
src/stylesheets/mod.rs
@@ -6,6 +6,6 @@
6
//! By default the `no_color` is available. If the crate gets compiled
//! with `ansi_term`, the `color` stylesheet is added.
pub mod color;
pub mod no_color;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments