Ignore:
Timestamp:
2002-04-22T15:26:19+12:00 (22 years ago)
Author:
sjboddie
Message:

Fixed a couple of bugs in the way the "Expand Text" function worked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/documentaction.cpp

    r2805 r3087  
    767767
    768768    // output the document text
    769     textout << "<p>\n";
    770     output_document (OID, args, collectproto, disp, outconvert, textout, logout);
     769    if (!args["d"].empty()) {
     770      textout << "<p>\n";
     771      output_document (OID, args, collectproto, disp, outconvert, textout, logout);
     772    }
    771773
    772774    textout << outconvert << disp << "_document:footer_\n";
     
    928930    int count = 0;
    929931    while (sechere != secend) {
    930       textout << outconvert << disp << "\n<p><a name=" << count << "></a>\n";
     932      textout << outconvert << disp << "\n<p><a name=" << (*sechere).OID << "></a>\n";
    931933
    932934      int shastxt = (*sechere).metadata["hastxt"].values[0].getint();
Note: See TracChangeset for help on using the changeset viewer.