From 37851f4920f0dd54fe0f759bfd99ab308d10c6d2 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Mon, 16 Jul 2012 18:37:34 +0000 Subject: [PATCH] Iniciando implementação da passagem de valores da interface jni para o buffer de terminal --- html.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/html.c b/html.c index b0693fe..4f7ea4d 100644 --- a/html.c +++ b/html.c @@ -274,6 +274,16 @@ if(*ptr) { + int f; + char * last = ptr; + + for(f=0;ptr[f];f++) + { + if(ptr[f] > ' ') + last = ptr+f+1; + } + *last = 0; + append_string(&info," value=\""); append_string(&info,ptr); append_string(&info,"\""); @@ -397,7 +407,7 @@ if(info.form) { - static const char * prefix = "
"; + static const char * prefix = ""; static const char * suffix = "
"; char *text = info.text; -- libgit2 0.21.2