From a237c2cb9b60f4ffceeec3b5d1240e5e2c7bb6e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCller?= Date: Sun, 5 Oct 2014 20:49:27 +0200 Subject: [PATCH] header size setting added (API leftover) --- API.md | 1 + src/notehub/api.clj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/API.md b/API.md index 9f8d679..fad729a 100644 --- a/API.md +++ b/API.md @@ -78,6 +78,7 @@ Parameter | Explanation | Type `version` | Used API version | **required** `theme` | Theme name | *optional* `text-size` | Text size | *optional* +`header-size`| Header size | *optional* `text-font` | Text font name | *optional* `header-font`| Header font name | *optional* diff --git a/src/notehub/api.clj b/src/notehub/api.clj index e1a93de..1f4f6f6 100644 --- a/src/notehub/api.clj +++ b/src/notehub/api.clj @@ -85,7 +85,7 @@ (when (blank? note) "note is empty")])] (if (empty? errors) (let [[year month day] (map str (get-date)) - params (select-keys params [:text-size :text-font :header-font :theme]) + params (select-keys params [:text-size :header-size :text-font :header-font :theme]) raw-title (filter #(or (= \- %) (Character/isLetterOrDigit %)) (-> note derive-title trim (sreplace " " "-") lower-case)) max-length (get-setting :max-title-length #(Integer/parseInt %) 80)