I'm trying to do a DocumentAppendMarkup with a fixed-width font, so
that some notation will line up nicely when I add it to the end of a
blip. I've tried several different things, most recently:

def OnBlipSubmitted(properties, context):
    blip_id = properties['blipId']
    blip = context.GetBlipById(blip_id)
    doc = blip.GetDocument()
    txt = doc.GetText()
    answers = getAnswers(txt)
    if answers != None:
        html = '\n\n<tt>'
        html += answers + '</tt>'
        builder = waveapi.ops.OpBuilder(context)
        builder.DocumentAppendMarkup(blip.waveId, blip.waveletId,
blip_id, html)
        # BTW, I also tried CreateChild and that doesn't appear to be
working.

Where I'm now using '<tt>', I have also tried
* <code>
* <font face="Courier New">
* <span style="font-family: Courier New,Courier,monospace;">
with no better success.

When I look at the appengine log, the markup looks fine in the
Outgoing JSON. But when I look at what ends up on the screen, I see
Arial, and when I use Firebug to look at the HTML, the markup has
vanished.

I can put the blip in edit mode and manually change the font to
Courier New, which makes me suspect that it should be possible to do
it programmatically.

Is there a way to do that?

Thanks,
Will Ware

--

You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=.


Reply via email to