Project

General

Profile

« Previous | Next » 

Revision 2437

Added by sgarg over 19 years ago

Fixed a bug from previous commit which removed whitespaces from documents.

View differences:

src/edu/ucsb/nceas/metacat/MetaCatUtil.java
263 263
                         str.append(""");
264 264
                         break;
265 265
                     }
266
                     case '\r':
267
                     case '\n': {
268
                         // else, default append char
269
                     }
266 270
                     default: {
267 271
                         if ((ch<128)&&(ch>31)) {
268 272
                             str.append(ch);
......
287 291
                     }
288 292
                 }
289 293
             }
290
             String temp = str.toString();
291
             temp = temp.trim();
292
             if (temp.length()<1) temp = " ";
293
             return temp;
294
             return str.toString();
294 295
    }
295 296

  
296 297
    /**
src/edu/ucsb/nceas/metacat/DBSAXHandler.java
505 505
                //dbconn.close();
506 506
            } catch (SQLException sqle) {
507 507
            }
508
            MetaCatUtil.debugMessage("Error in DBSAXHandler.run "
508
            MetaCatUtil.debugMessage("Error in DBSAXHandler.checkDocumentTable "
509 509
                    + e.getMessage(), 30);
510 510

  
511 511
        } finally {

Also available in: Unified diff