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

« back to all changes in this revision

Viewing changes to src/Typeset/Line/lazy_paragraph.cpp

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-01-27 15:09:22 UTC
  • mfrom: (4.1.19 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130127150922-j3s80pjnmdcy0jxo
Tags: 1:1.0.7.16-1ubuntu1
* Make debian/fixsh operate on debian/texmacs instead of debian/tmp,
  and move it to binary-post-install/texmacs:: to keep consistency
  when not building arch-indep packages, as on the Dbeian buildds.
* Remove maxima_filter in clean to fix FTBFS on on non-i386 arches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
538
538
    if (N (qvw->before) != 0) li= join (qvw->before, li);
539
539
    if (N (qvw->after ) != 0) li= join (li, qvw->after);
540
540
 
541
 
    SI w= 0;
 
541
    // determine the first indentation
 
542
    SI first= env->as_length (style [PAR_FIRST]);
 
543
    bool no_first= (style [PAR_NO_FIRST] == "true");
 
544
    style (PAR_NO_FIRST)= "false";
 
545
    if (no_first) style (PAR_FIRST)= "0cm";
 
546
    for (int j=0; j<N(a); j++)
 
547
      if (a[j]->type == CONTROL_ITEM)
 
548
        if (is_tuple (a[j]->t, "env_par")) {
 
549
          if (a[j]->t[1]->label == PAR_FIRST) {
 
550
            int k;
 
551
            for (k=j-1; k>=0; k--)
 
552
              if (a[k]->b->w () != 0) break;
 
553
            if (k >= 0) continue;
 
554
            else first= env->as_length (a[j]->t[2]);
 
555
          }
 
556
        }
 
557
    if (mode == "center") first= 0;
 
558
 
 
559
    SI w= left + first;
542
560
    int i, n= N(li);
543
561
    for (i=0; i<n-1; i++)
544
562
      w += li[i]->spc->def + li[i]->b->x2;