Looks like you need a display or the text gets confused about how big
(in pixels) characters really are:
#lang racket/gui
(require framework)
(define f (new frame% [label ""]))
(define t (new racket:text%))
(define ec (new editor-canvas% [parent f] [editor t]))
(send t insert "(+3\n4)")
(s
In my auto-indenter and style checker (not yet a package that’s widely
available): evidently, there are some preferences that control which
constructs get tabified differently than expected. So I tweak those
preferences before invoking |tabify-all|. (In my case, I’m trying to
support two plausi
That actually solves a bunch of problems for me… but strangely, not the initial
one. If, for instance, I tabify
(+ 3
4)
using the tabify-all method, the line with the four gets an indentation of 2,
not 8. This is definitely different from DrRacket’s behavior.
Any idea how to fix this?
3 matches
Mail list logo