diff options
| author | Teddy Wing | 2023-04-21 21:10:25 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2023-04-21 21:10:57 +0200 | 
| commit | 2e1d7561fe1bfb3e97e1205622c5ea5da2b9925b (patch) | |
| tree | 0bd6874d3891474710a2cb634aeb6f44062d2489 | |
| parent | 85a325bb00831a5237b57f2851835655f7a7c5b1 (diff) | |
| download | xfdf-2e1d7561fe1bfb3e97e1205622c5ea5da2b9925b.tar.bz2 | |
xfdf.lisp: Remove old code and TODOs for nested fields
Nested field handling works now.
| -rw-r--r-- | src/xfdf.lisp | 17 | 
1 files changed, 0 insertions, 17 deletions
| diff --git a/src/xfdf.lisp b/src/xfdf.lisp index 59a032a..64456ee 100644 --- a/src/xfdf.lisp +++ b/src/xfdf.lisp @@ -9,18 +9,6 @@ list."  	<fields>  ") -;   (loop for (name . value) in fields -;         do -;         (let ((value (cond ((eq value t) "Yes") -;                            ((eq value nil) "Off") -;                            (t value)))) -;           (format output-stream "		<field name=\"~A\"> -; 			<value>~A</value> -; 		</field> -; " -; name -; value))) -    (loop for (name . value) in fields          do          (format output-stream "~A" (field-xfdf name value))) @@ -40,16 +28,11 @@ list."    "Build an XFDF XML string for a field. The `nesting-level` specifies the  amount of indentation to use relative to the +field-base-indentation+."    (let ((indent (+ +field-base-indentation+ nesting-level))) -    ;; TODO: Add checkbox default values.      (if (consp value) -        ;; TODO: We need to do something with value -        ;; TODO: How to concat results from dolist?          (build-xfdf-nested-field name value nesting-level indent) -        ;; TODO: Put checkbox stuff here.          (let ((value (pdf-checkbox-value value)))            (xfdf-field-string name value indent))))) -;; * (format t "~v{~A~:*~}<>~A" 5 '("Hello") "Next")  (defun build-xfdf-nested-field (name value nesting-level indent)    "Build the XFDF XML for a field containing other fields." | 
