aboutsummaryrefslogtreecommitdiff
path: root/src/stv/gregory/transfers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stv/gregory/transfers.rs')
-rw-r--r--src/stv/gregory/transfers.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stv/gregory/transfers.rs b/src/stv/gregory/transfers.rs
index 88338af..6eb5d52 100644
--- a/src/stv/gregory/transfers.rs
+++ b/src/stv/gregory/transfers.rs
@@ -455,7 +455,13 @@ impl<'e, N: Number> TransferTable<'e, N> {
}
/// Render table as plain text
- //#[cfg(not(target_arch = "wasm32"))]
+ #[cfg(not(target_arch = "wasm32"))]
+ pub fn render_text(&self, opts: &STVOptions) -> String {
+ return self.render(opts).to_string();
+ }
+
+ /// Render table as HTML
+ #[cfg(target_arch = "wasm32")]
pub fn render_text(&self, opts: &STVOptions) -> String {
return self.render(opts).to_html();
}
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.