Commit 37851f4920f0dd54fe0f759bfd99ab308d10c6d2
1 parent
12770c70
Exists in
master
and in
3 other branches
Iniciando implementação da passagem de valores da interface jni para o buffer de terminal
Showing
1 changed file
with
11 additions
and
1 deletions
Show diff stats
html.c
... | ... | @@ -274,6 +274,16 @@ |
274 | 274 | |
275 | 275 | if(*ptr) |
276 | 276 | { |
277 | + int f; | |
278 | + char * last = ptr; | |
279 | + | |
280 | + for(f=0;ptr[f];f++) | |
281 | + { | |
282 | + if(ptr[f] > ' ') | |
283 | + last = ptr+f+1; | |
284 | + } | |
285 | + *last = 0; | |
286 | + | |
277 | 287 | append_string(&info," value=\""); |
278 | 288 | append_string(&info,ptr); |
279 | 289 | append_string(&info,"\""); |
... | ... | @@ -397,7 +407,7 @@ |
397 | 407 | |
398 | 408 | if(info.form) |
399 | 409 | { |
400 | - static const char * prefix = "<form name=\"" PACKAGE_NAME "\">"; | |
410 | + static const char * prefix = "<form name=\"" PACKAGE_NAME "\" id=\"form3270\" >"; | |
401 | 411 | static const char * suffix = "</form>"; |
402 | 412 | char *text = info.text; |
403 | 413 | ... | ... |