Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38575

Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <mortenengv@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'output': 0.04; 'subject:Python': 0.05; 'formatting': 0.07; 'subject:file': 0.07; 'subject:2.7': 0.09; 'textwrap': 0.09; 'cc:addr:python- list': 0.10; 'skip:f 30': 0.15; 'subject: \n ': 0.16; 'suggestion.': 0.16; 'wrote:': 0.17; 'team,': 0.18; 'feb': 0.19; 'module': 0.19; 'python?': 0.20; 'import': 0.21; 'cc:2**0': 0.23; '&gt;': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'module.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'file': 0.32; 'received:74.125.82': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'saved': 0.35; 'skip:* 20': 0.35; 'text.': 0.35; 'pm,': 0.35; 'received:74.125': 0.36; 'subject:with': 0.36; 'data': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'your': 0.60; 'great': 0.64; 'here': 0.65; '2013': 0.84; 'subject:Any': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+fBrbo17nOCDtOqf59PaC4SxnnY+kcjSp61R/s73vjo=; b=zRbKzItpCkHu73VpeEhD+BodtzNEgp+9b3dwUdmbZyyoVXUWvcVvTXBjuA33mGwEVU 53DzBuokwQiy2HWpR07lbu5d3y5o6kzjznA9BRs2fpLt85qPw5TYgBaWpEk6SRvKW7Po 2zr59gOlXt8rn4pogio2iNk90vX/zlid9Dnj3VPwdcGVuSCELBGRtPz2pgwFiY/dRdYa uKPWdgpaIhwTfM5B7zDTjEcNJnJtisQB4FpoCVmfmXRe70SIyLMZgABe5VSPo3FhQTP3 KsJHCqadFQAQmsURT7LKE9CfZ8HLCg2+IjXecA+tE0nfQxorjA9GCAGJqOn6kxKdxZqq w7qQ==
MIME-Version 1.0
X-Received by 10.180.24.9 with SMTP id q9mr11406735wif.14.1360510741386; Sun, 10 Feb 2013 07:39:01 -0800 (PST)
In-Reply-To <1670212.1goHRf2svO@mach-114-20>
References <CAJ2vgs7cPKtb3fv=heMtfV7nS-15G+4npRVCkJLqx-CAkrMgVQ@mail.gmail.com> <1670212.1goHRf2svO@mach-114-20>
Date Sun, 10 Feb 2013 16:39:01 +0100
Subject Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7
From Morten Engvoldsen <mortenengv@gmail.com>
To inq1ltd <inq1ltd@inqvista.com>
Content-Type multipart/alternative; boundary=f46d043892d97417a304d560975b
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1581.1360510748.2939.python-list@python.org> (permalink)
Lines 126
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1360510748 news.xs4all.nl 6949 [2001:888:2000:d::a6]:48459
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38575

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,
Thanks for your suggestion. This is a great forum for Python. :)

On Sun, Feb 10, 2013 at 4:12 PM, inq1ltd <inq1ltd@inqvista.com> wrote:

> **
>
> On Saturday, February 09, 2013 03:27:16 PM Morten Engvoldsen wrote:
>
> > Hi Team,
>
> > I Have saved my output in .doc file and want to format the output with
>
> >
>
> > *************Start the File ************************
>
> >
>
> > Some data here
>
> >
>
> >
>
> > *******************End of File*****************************
>
> >
>
> > Can you let me know how can i do that using Python?
>
>
>
>
>
> Look up the textwrap module
>
>
>
> import the textwrap module.
>
>
>
> from the textwrap module you can
>
> import dedent, wrap, and fill
>
>
>
> These are great for formatting text.
>
>
>
> jd
>
> inqvista.com
>
>
>
>
>
>
>
>
>
>
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7 Morten Engvoldsen <mortenengv@gmail.com> - 2013-02-10 16:39 +0100

csiph-web