mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-22 10:31:37 +01:00
drawingml: the format doc link names the function
This commit is contained in:
1 parent
5d72faf4b2
commit
4e11e2b9d4
1 file changed
+1
-1
@@ -355,7 +355,7 @@ pub fn format(code: &str, v: f64, lang: Option<&str>) -> String {
|
||||
format_dated(code, v, lang, false)
|
||||
}
|
||||
|
||||
/// [`format`] with the workbook's date system: `date_1904` counts serial dates from 1 January
|
||||
/// [`format()`] with the workbook's date system: `date_1904` counts serial dates from 1 January
|
||||
/// 1904 (`c:date1904`) instead of 1900.
|
||||
pub fn format_dated(code: &str, v: f64, lang: Option<&str>, date_1904: bool) -> String {
|
||||
let code = if code.len() > MAX_CODE_LEN * 4 || code.chars().count() > MAX_CODE_LEN { "General" } else { code };
|
||||
|
||||
Reference in new issue
Block a user