~ubuntu-branches/ubuntu/saucy/texmacs/saucy-proposed

« back to all changes in this revision

Viewing changes to src/Data/Convert/Texmacs/fromtm.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2011-04-04 13:58:09 UTC
  • mfrom: (4.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110404135809-6f6jvotefb694vgp
Tags: 1:1.0.7.10-1
* New Upstream Release.
* Added gostscript to Build-Depends.  (Closes: #582228)

Show diffs side-by-side

added added

removed removed

Lines of Context:
498
498
change_doc_attr (tree doc, string attr, tree val) {
499
499
  int i, n= arity (doc);
500
500
  tree r (doc, n);
 
501
  bool done= false;
501
502
  for (i=0; i<n; i++)
502
 
    if (is_compound (doc[i], attr, 1))
 
503
    if (is_compound (doc[i], attr, 1)) {
503
504
      r[i]= tree (L(doc[i]), val);
 
505
      done= true;
 
506
    }
504
507
    else r[i]= doc[i];
 
508
  if (!done) r << compound (attr, val);
505
509
  return r;
506
510
}